/**
 * 
 */
package com.cuc.platform.core.domain.baseInfo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author peepul
 *
 * 组织机构实体
 *
 * sa_organization
 */
public class Organization implements Serializable{
	private static final long serialVersionUID = -1630373597957649201L;
	
	private Long orgId;//pk
	
	private Long parentId;
	private String name;
	private String code;
	private Integer level;
	private String levelCode;
	private String isChildOrg;
	private Integer sortNo;
	private String phone;
	private String fax;
	private String scale;
	private String property;
	private Integer status;
	private Date createTime;
	private String descn;
	
	private List<UserInfo> userInfos;
	private List<Organization> orgs;
	private Organization org;
	
	public Organization() {
		super();
	}

	/**
	 * @param orgId
	 * @param name
	 */
	public Organization(Long orgId, String name, Integer status) {
		super();
		this.orgId = orgId;
		this.name = name;
		this.status = status;
	}

	/**
	 * @return the org
	 */
	public Organization getOrg() {
		return org;
	}

	/**
	 * @param org the org to set
	 */
	public void setOrg(Organization org) {
		this.org = org;
	}

	/**
	 * @return the orgId
	 */
	public Long getOrgId() {
		return orgId;
	}

	/**
	 * @param orgId the orgId to set
	 */
	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	/**
	 * @return the parentId
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * @param parentId the parentId to set
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the level
	 */
	public Integer getLevel() {
		return level;
	}

	/**
	 * @param level the level to set
	 */
	public void setLevel(Integer level) {
		this.level = level;
	}

	/**
	 * @return the levelCode
	 */
	public String getLevelCode() {
		return levelCode;
	}

	/**
	 * @param levelCode the levelCode to set
	 */
	public void setLevelCode(String levelCode) {
		this.levelCode = levelCode;
	}

	/**
	 * @return the isChildOrg
	 */
	public String getIsChildOrg() {
		return isChildOrg;
	}

	/**
	 * @param isChildOrg the isChildOrg to set
	 */
	public void setIsChildOrg(String isChildOrg) {
		this.isChildOrg = isChildOrg;
	}

	/**
	 * @return the sortNo
	 */
	public Integer getSortNo() {
		return sortNo;
	}

	/**
	 * @param sortNo the sortNo to set
	 */
	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the fax
	 */
	public String getFax() {
		return fax;
	}

	/**
	 * @param fax the fax to set
	 */
	public void setFax(String fax) {
		this.fax = fax;
	}

	/**
	 * @return the scale
	 */
	public String getScale() {
		return scale;
	}

	/**
	 * @param scale the scale to set
	 */
	public void setScale(String scale) {
		this.scale = scale;
	}

	/**
	 * @return the property
	 */
	public String getProperty() {
		return property;
	}

	/**
	 * @param property the property to set
	 */
	public void setProperty(String property) {
		this.property = property;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the descn
	 */
	public String getDescn() {
		return descn;
	}

	/**
	 * @param descn the descn to set
	 */
	public void setDescn(String descn) {
		this.descn = descn;
	}

	/**
	 * @return the userInfo
	 */
	public List<UserInfo> getUserInfos() {
		return userInfos;
	}

	/**
	 * @param userInfo the userInfo to set
	 */
	public void setUserInfo(List<UserInfo> userInfos) {
		this.userInfos = userInfos;
	}

	/**
	 * @return the org
	 */
	public List<Organization> getOrgs() {
		return orgs;
	}

	/**
	 * @param org the org to set
	 */
	public void setOrg(List<Organization> orgs) {
		this.orgs = orgs;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
}
